<#include "/layout/header2.ftl" />

<body path="${path}" style="overflow-y: hidden; min-width: 1400px; display: flex; flex-direction: column;">

<header class="am-topbar am-topbar-inverse">
	<h1 class="am-topbar-brand am-margin-right">后台管理系统</h1>

	<div class="am-collapse am-topbar-collapse" id="topbar-collapse">
		<#if menuMap?? && menuMap?size &gt; 0>
		<ul class="am-nav am-nav-pills am-topbar-nav">
		<#assign list=menuMap["0"]! />
		<@tree map=menuMap list=list />
		</ul>
		</#if>
		
		<ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right" style="margin-top: 0; margin-right: 0">
			<li id="li_-100" class="am-dropdown" data-am-dropdown>
				<a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
					<span class="am-icon-users am-margin-right-xs"></span>${user.nickname!}<span class="am-icon-caret-down am-margin-left-xs"></span>
				</a>
				<ul class="am-dropdown-content">
					<li>
						<a href="javascript:;" url="${path}/index/password" pos="-101" parent_pos="-100">
							<span class="am-icon-lock am-margin-right-xs"></span>修改密码
						</a>
					</li>
					<li>
						<a href="javascript:;" url="${path}/index/login_log" pos="-102" parent_pos="-100">
							<span class="am-icon-tty am-margin-right-xs"></span>登录日志
						</a>
					</li>
					<li>
						<a href="${path}/app/logout">
							<span class="am-icon-sign-out am-margin-right-xs"></span>退出
						</a>
					</li>
				</ul>
			</li>
			<li>
				<a href="javascript:;" id="admin-fullscreen">
					<span class="am-icon-arrows-alt am-margin-right-xs"></span><span class="admin-fullText">开启全屏</span>
				</a>
			</li>
		</ul>
		
		
	</div>
</header>

<#macro tree map list count=0>
	<#if list??>
	<#list list as vo>
		<#assign subList=map[vo.id?string]! />
		<#if subList?? && subList?size &gt; 0>
			<li id="li_${vo.id!}" class="am-dropdown" data-am-dropdown>
				<a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">${vo.name!} <span class="am-icon-caret-down"></span></a>
				<ul class="am-dropdown-content">
				<@tree map=map list=subList count=count+1 />
				</ul>
			</li>
		<#else>
			<li><a href="javascript:;" <#if vo.url??>url="${path}${vo.url!}"</#if> pos="${vo.id}" parent_pos="${vo.parentId!"0"}">${vo.name!}</a></li>
		</#if>
	</#list>
	</#if>
</#macro>

<div class="admin-content" style="">
	<div class="am-tabs" data-am-tabs="{noSwipe: 1}" id="div_tabs" style="">
		<ul class="am-tabs-nav am-nav am-nav-tabs">
			<li class="am-active"><a href="javascript:;">主页</a></li>
		</ul>
		<div class="am-tabs-bd" style="">
			<div class="am-tab-panel am-active am-text-center">
				<!-- 
				<iframe width="100%" id="ifrm_index" height="100%" frameborder="0" scrolling="no"  marginwidth="0" marginheight="0"></iframe>
				  -->
				<h1>主页</h1>
			</div>
		</div>
	</div>
</div>


<#include "/layout/footer.ftl" />